
<?php include './application/views/common/header.php'; ?>
<table width="90%" cellspacing="0" cellpadding="0" border="0" class="user_table">
	<tr>
		<td valign="top" class="user_table_td"><?php include './application/views/common/user_left.php'; ?></td>
		<!-- Left End -->
		<td valign="top">

<div class="user_list_title">
 <div class="user_con_tab">
  <ul>
    <li <?php echo $credit_menu==1?'class="current7"':''; ?> ><a href="/user/creditlog.html">积分日志</a></li>
    <li <?php echo $credit_menu==2?'class="current7"':''; ?>><a href="/user/orderlist.html">商城兑换记录</a></li>
  </ul>
</div>

</div>
<!-- User_List_Title End -->

<div class="user_list_con">
<form id="tmpform"></form>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
	  <tr bgcolor="#F3F3F3" height="40px">
		<td align="center"><strong>类型</strong></td>
		<td align="center"><strong>操作</strong></td>
		<td align="center"><strong>积分</strong></td>
		<td align="center"><strong>说明</strong></td>
		<td align="center"><strong>时间</strong></td>
	  </tr>
          
	  <?php foreach($list as $val){?>
	  <tr height="35px">
		<td align="center"><?php echo $creditTypeName[$val['type_id']];?></td>
		<td align="center"><?php echo $val['op']==1 ? '增加':'减少';?></td>
		<td align="center"><?php echo $val['credit_value'];?></td>
		<td align="center"><?php echo $val['remark'];?></td>
		<td align="center"><?php echo $val['add_time'] ? date('Y-m-d H:i:s',$val['add_time']):'';?></td>
	  </tr>
	  <?php }?>
	  <tr><td colspan="5" class="page" style="text-align: center;"><?php echo $this->pagination->create_links();?></td></tr>
	</table>
</div>
<!-- User_List_Con End -->
</td>
	</tr>
</table>

<?php include './application/views/common/footer.php'; ?>